<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.hz.util.*" %>
<%@ page import="com.hz.model.ActType" %>
<%@ page import="com.hz.control.ActTypeControl" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>project</title>
<link rel="stylesheet" type="text/css" href="../../../css/active.css"/>
</head>
<body>
<form>

<table class='add' >
<%
	request.setCharacterEncoding("UTF-8");
	ActType ac = new ActType();

	List<ActType> list = new ArrayList<ActType>();
	list = (List) ActTypeControl.getAllActTypes();
	      
	for (int i = 0; i < list.size(); i++) {
		ac = list.get(i);
%>  
	
		<tr>
		<td><a href="ActTypeDetail.jsp?atid=<%=ac.getId() %>" target="right"><%=ac.getTypeName()%></a></td>
		<td><a href="updateActType.jsp?atid=<%=ac.getId()%>" target="right">修改</a> | 
		<a href="deleteActType.jsp?atid=<%=ac.getId()%>" target="right">删除</a></td>
		</tr>
	<%
		}
	%>  
	<tr><td colspan='3'><a href="addActType.jsp" target="right">添加</a></td></tr> 	
   </table>
   </form>
</body>
</html>